import axios from "axios";
axios.defaults.baseURL = "http://47.108.197.28:3000/";
/* 配置跨域访问cookie */
// axios.defaults.withCredentials = true;
// axios.defaults.crossDomain = true;
class Http{
    static request({
        url,
        method="get",
        data={},
        params={}
    }){
        return axios({
            url,
            method,
            data,
            params
        })
    }
}

export default Http;